package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.CarOperatePlanMapper;
import com.whq.entity.CarOperatePlan;
import com.whq.service.CarOperatePlanService;

@Service(value = "tdCarOperatePlanService")
public class CarOperatePlanServiceImpl implements CarOperatePlanService {

    @Autowired
    private CarOperatePlanMapper<CarOperatePlan>tdCarOperatePlanMapper;
    
    @Override
    public Integer insertSelective(CarOperatePlan tdCarOperatePlan) throws Exception {
           return this.tdCarOperatePlanMapper.insertSelective(tdCarOperatePlan);
        }

    @Override
    public Integer insertBatch(List<CarOperatePlan> tdCarOperatePlan) throws Exception {
           return this.tdCarOperatePlanMapper.insertBatch(tdCarOperatePlan) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdCarOperatePlanMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdCarOperatePlanMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(CarOperatePlan tdCarOperatePlan) {
           return this.tdCarOperatePlanMapper.updateByPrimaryKeySelective(tdCarOperatePlan);
    }

    @Override
    public CarOperatePlan findById(Object id) {
           return (CarOperatePlan) this.tdCarOperatePlanMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CarOperatePlan> selectByCondition(CarOperatePlan tdCarOperatePlan) {
           return (List<CarOperatePlan>) this.tdCarOperatePlanMapper.selectByCondition(tdCarOperatePlan);
    }

    @Override
    public Integer selectCountByCondition(CarOperatePlan tdCarOperatePlan) {
           return  this.tdCarOperatePlanMapper.selectCountByCondition(tdCarOperatePlan);
    }

}
